package com.riverstar.wwndemo.client;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.riverstar.wwndemo.client.WWNDemo.Images;

public class BottomPanel extends Composite implements ClickHandler {
	
	private HorizontalPanel outer = new HorizontalPanel();
	
	public BottomPanel(Images images) {
		outer.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);
		outer.add( new HTML("HELLO WORLD2!"));
		outer.setStyleName("bottomPanel");
		initWidget(outer);
	}
	
	@Override
	public void onClick(ClickEvent event) {
		Object sender = event.getSource();
		
	}

	public void adjustSize(int width, int height) {
		this.outer.setPixelSize(width, 10);
	}

	public int getHeight() {
		return 10;
	}

}
